<script setup lang="ts">
import { getTime } from '@/utils/time'
import SvgHome from '@/components/SvgIcon/IndexLogin.vue'
import { useI18n } from 'vue-i18n'

// 国际化
const { t } = useI18n()
</script>

<template>
  <el-card>
    <div class="mainLayout-box">
      <img src="../../public/homeImg.webp" alt="" class="mainLayout-avatar" />
      <div class="mainLayout-bottom">
        <h3 class="mainLayout-title">{{ getTime() }}好呀, Cecilia!</h3>
        <p>{{ t('welcome') }}</p>
        <p>{{ t('projectTitle') }}</p>
      </div>
      <div class="mainLayout-bottoms">
        <SvgHome />
      </div>
    </div>
  </el-card>
</template>

<style scoped lang="scss">
.mainLayout-box {
  display: flex;

  .mainLayout-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  .mainLayout-bottom {
    margin-left: 20px;

    .mainLayout-title {
      font-size: 50px;
      font-weight: 900;
      margin-bottom: 30px;
      font-style: oblique;
    }

    p {
      font-style: italic;
      color: skyblue;
      font-size: 30px;
    }
  }
}

.mainLayout-bottoms {
  display: flex;
}
</style>
